package com.aorise.model.system;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Auther: zhouhao
 * @Date: 2019/4/26
 * @Description: 对应用户表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable{

    /**
     * 主键
     */
    private Integer id;

    /**
     * 帐号
     */
    private String account;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 用户类型
     */
    private Integer userType;

    /**
     * 电话
     */
    private String phone;

    /**
     * 职务
     */
    private String deptId;

    /**
     * 组织
     */
    private Integer orgId;

    private Integer state;

    private Date createTime;

    private Integer createUser;

    private Date updateTime;

    private Integer updateUser;

    private List<Role> roles;

}